const JssSdk = require('@jd/jss-sdk-node');
const jss = new JssSdk('storage.jd.local', 'Eupc5KyJ1niwRxlm', 'aFCPTK18dvg42rYAv9NbFuIwbDZSrg96DZO4cDNx', false, 'storage.jd.com');

const finalFileName = 'test/' + encodeURIComponent('@') + 'jdc/a.css';

// 上传文件到京东云
jss.bucket('jxfe').object(finalFileName).put('/Users/kejunsheng/code/webstatic/test/oss-css.css')
    .then(() => {
        const fileUrl = `https://storage.360buyimg.com/jxfe/${finalFileName}`;
        console.error('上传成功');
        console.error(fileUrl);
    })
    .catch((error) => {
        console.error('异常');
        console.error(error);
    });